package com.duoec.magichour.dto.response;

import java.util.Date;

/**
 * 前端视图-文章列表-文章信息
 * Created by ycoe on 17/6/25.
 */
public class ArticleListItemDto {
    /**
     * 文章ID
     * @demo 1235
     */
    private Long id;

    /**
     * 文章标题
     * @demo 小白必看：买房前不做好这6项工作
     */
    private String title;

    /**
     * 封面图
     * @demo http://assets.duoec.com/img/2ssdfdw.jpg
     */
    private String coverImg;

    /**
     * 概要
     * @demo 这里是文章的概要，会自动截取文章的前200个字符...
     */
    private String summary;

    /**
     * 更新时间
     * @demo 2017-07-29 16:06:09
     */
    private Date updateTime;

    /**
     * 用户信息
     */
    private UserSimpleInfoDto userInfo;

    /**
     * 是否收藏
     * @demo false
     */
    private Boolean collected;

    /**
     * 文章分类ID
     */
    private Integer cateId;

    /**
     * 分类名称
     */
    private String cateName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public UserSimpleInfoDto getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserSimpleInfoDto userInfo) {
        this.userInfo = userInfo;
    }

    public Boolean getCollected() {
        return collected;
    }

    public void setCollected(Boolean collected) {
        this.collected = collected;
    }

    public Integer getCateId() {
        return cateId;
    }

    public void setCateId(Integer cateId) {
        this.cateId = cateId;
    }

    public String getCateName() {
        return cateName;
    }

    public void setCateName(String cateName) {
        this.cateName = cateName;
    }
}
